package com.albaba.designpattern.singleton;



/**
 * @Description: 单例模式之枚举
 * @Author zx
 * @Date 2025/2/18 17:26
 * @Version 1.0
 */
public enum Singleton_007 {

    INSTANCE;

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static Singleton_007 getInstance() {
        return INSTANCE;
    }
}
